<notempty name="attrinfo">
<foreach name="attrinfo" item="attr">
<php>
$moreurl = delthstr($configinfo['moreurl'],'category='.$_MGPC_REQ['category'],'category='.$attr['column']);
if($_MGPC_REQ['attrid'])
{
	$moreurl = delthstr($moreurl,'&attrid='.$_MGPC_REQ['attrid'],'&attrid='.$id);
}else{
	$moreurl = delthstr($moreurl,'&attrid=0','&attrid='.$id);
}
</php>
<a class="btn btn-xs btn-warning" href="<php>if($attr['url']){</php>{$attr.url}<php>}else{</php>/portal/admin_article/index.html{$moreurl}<php>}</php>">{$attr.name}</a>
</foreach>
</notempty>